package chatBot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "message")
@ApiModel(description = "消息实体")
public class Message {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "消息ID", example = "1823271392439799811")
    private Long messageId;

    @ApiModelProperty(value = "消息方向", example = "1")
    private Integer messageDirection;

    @ApiModelProperty(value = "会话ID", example = "1823265462151090177")
    private Long conversationId;

    @ApiModelProperty(value = "消息内容", example = "Hello, this is a message content.")
    private String content;

    @ApiModelProperty(value = "创建时间", example = "2023-10-08 15:51:39")
    private LocalDateTime createTime;
}
